package com.springcloud.movieservice.clients;

import com.springcloud.movieservice.pojo.Author;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "author-service", fallback = AuthorServiceClientFallBack.class)
public interface AuthorServiceClient {
    @GetMapping("/author/{id}")
    Author getById(@PathVariable("id") Integer id);
}
